const path = require('path');

module.exports = {
  entry: {
    'index': './server.js',
    'filing': './filing.js'
  },
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'js/[name].bundle.js',
    chunkFilename: '[name].bundle.js',
    clean: true
  },
  target: 'node' // 这是最关键的
};